@import '../../common/css/Common.less';

#main {
    .topContent {
        padding: 0 0.63rem;

        .activeSwitchBox {
            padding: 0.7rem 0;
            position: relative;

            .title {
                font-size: 0.6rem;
                font-weight: bold;
            }

            .switchBox {
                font-size: 0;
                position: absolute;
                top: 50%;
                right: 0;
                transform: translateY(-50%);

                .switchTitle {
                    font-size: 0.6rem;
                    color: @color-text-theme;
                    vertical-align: middle;
                }

                .switchImg {
                    vertical-align: middle;
                    width: 0.35rem;
                    margin-left: 0.25rem;
                }
            }
        }

        .userInfoBox {
            background-color: @color-text-auxiliary;
            border-radius: @border-radius-universal;

            .userInfo {
                padding: 1rem;
                .fontZero();

                .userFace {
                    width: 2.75rem;
                    height: 2.75rem;
                    border-radius: 50%;
                    background-size: cover;
                    background-position: center;
                    border: 0.15rem solid rgba(255, 8, 68, 0.2);
                }

                .userDetailInfo {
                    width: calc(100% - 3.05rem);
                    padding-left: 0.25rem;
                    box-sizing: border-box;

                    .userName {
                        font-size: 0.75rem;
                    }

                    .userTip {
                        margin-top: 0.35rem;
                        font-size: 0.5rem;
                        color: #666666;
                    }
                }
            }
        }

        .userWalletBox {
            display: flex;
            justify-content: space-between;
            padding: 0.63rem 0.85rem;

            .itemBox {
                text-align: center;

                .title {
                    font-size: 0.85rem;
                    font-weight: bold;
                }

                .label {

                    margin-top: 0.5rem;
                    color: #999999;
                    font-size: 0.6rem;
                }
            }
        }

        .reminderBox {
            padding-top: 0.93rem;
            padding-left: 1.5rem;
            position: relative;



            .reminderInfo {
                // padding-left: 1.2rem;
                text-align: center;
                line-height: 1;
                width: calc(100% - 1.2rem);
                box-sizing: border-box;
                position: relative;

                .reminderImg {
                    width: 1.2rem;
                    position: absolute;
                    top: 50%;
                    left: -0.5rem;
                    transform: translateY(-50%);
                }

                .title {
                    font-size: 0.6rem;
                    text-align: center;
                }

                .label {
                    color: @color-text-theme;
                    font-size: 0.6rem;
                    text-align: center;

                    // margin-left: 0.5rem;
                    line-height: 1.5;
                }

                &>*:not(:first-child) {
                    margin-top: 0.45rem;
                }
            }
        }
    }

    .gridLayoutBox {
        background-color: @color-text-auxiliary;
        margin-top: 1rem;

        .gridTitle {
            padding: 0.78rem 1.23rem;
            font-size: 0.7rem;
            font-weight: bold;
            position: relative;

            &::before {
                content: '';
                display: block;
                width: 0.1rem;
                height: 0.75rem;
                background-color: @color-text-theme;
                position: absolute;
                top: 50%;
                left: 0.63rem;
                transform: translateY(-50%);
            }
        }

        .gridBox {
            padding: 0.75rem 1rem;
            .fontZero();

            .itemBox {
                width: 25%;
                text-align: center;

                &:nth-of-type(n+5) {
                    margin-top: 1.5rem;
                }

                .itemImg {
                    width: 2.5rem;
                    height: 2.5rem;
                    display: block;
                    margin: 0 auto;
                }

                .itemTitle {
                    margin-top: 0.32rem;
                    font-size: 0.6rem;
                }
            }
        }
    }
}
